package com.mxdx.edu.service.impl;

import com.mxdx.edu.dao.RecruitmentPositionDao;
import com.mxdx.edu.service.IRecruitmentPositionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 缓存商户简称
 *
 * @author WangYuan
 * @since 2016-02-29 19:00
 */

@Service
public class RecruitmentPositionService implements IRecruitmentPositionService {

    @Resource
    private RecruitmentPositionDao recruitmentPositionDao;

    @Override
    public List<Map<String, Object>> findListByMap(Map<String, Object> param) {
        return recruitmentPositionDao.findListByMap(param);
    }

	@Override
	public Map<String, Object> findMapByMap(Map<String, Object> param) {
		List<Map<String, Object>> list = recruitmentPositionDao.findListByMap(param);
		if(list != null && list.size() > 0){
			Map<String, Object> map = list.get(0);
			return map;
		}
		return null;
	}

	@Override
	public Map<String, Object> findOneByMap(Map<String, Object> param) {
		return recruitmentPositionDao.findOneByMap(param);
	}

	@Override
	public List<Map<String, Object>> helpMeFindANewJob(Map<String, Object> param) {
		return recruitmentPositionDao.helpMeFindANewJob(param);
	}
}
